package com.hushao.lims.weblims.repository;

import com.hushao.lims.weblims.domain.TeacherInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author 930588706
 * @date 18/1/15
 */
public interface TeacherRepository extends JpaRepository<TeacherInfo,Integer> {
    /**
     * 根据账号查询用户
     * @param username
     * @return
     */
    TeacherInfo findByTeacherNumber(String username);

    Page<TeacherInfo> findByTeacherNameLike(String teacherName, Pageable pageable);
}
